<div class="shimio" style="overflow: auto;">
  <div class="shimname">
    <span style="float:left;"><%= h shim_io.name %></span>
    <span style="float:right;">
      <% if logged_in? %>
        <% if is_admin? or @shim.user_id==current_user.id %>
          <%= link_to 'Edit', shim_io.class.name=~/input/i ? 
              edit_shim_shim_input_path(@shim, shim_io) : 
              edit_shim_shim_output_path(@shim, shim_io) %> | 
          <%= link_to 'Delete', [@shim, shim_io], :confirm => 'Are you sure?',
              :method => :delete %>
        <% end %>
      <% end %>
    </span><br/>  
  </div>
  
  <%= render :partial => 'annotations/tags', :locals => {:annotatable => shim_io}  %>
  
  <div style = "width: 78%; border-right: 1px dotted grey; min-height: 40px;">
    <%= render :partial => 'annotations/annotation_box', :locals => {
        :annotatable => shim_io, :attribute_name => "data_format"}  %>
    <%= render :partial => 'annotations/annotation_box', :locals => {
        :annotatable => shim_io, :attribute_name => "semantic_type"}  %>
    <%= render :partial => 'annotations/annotation_box', :locals => {
        :annotatable => shim_io, :attribute_name => "description"}  %>
    <%= render :partial => 'annotations/services', :locals => {:port => shim_io,
        :link_type => (shim_io.class.name=~/input/i ? "source":"sink")} %>
  </div>
</div>